/**
 *All rights Reserved, Designed By Water
 */
package com.ja.util;

import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

import org.apache.commons.codec.digest.DigestUtils;



/**   
 * @ClassName:Md5   
 * @Description:TODO
 * @author:Water 
 * @date: 2015-7-13 下午5:45:18  
 * @version V2.0  
 */
public class Md5 {
	
	/** 
     * 字符串MD5加密
     * @param inputStr 待加密字符串
     * @return MD5加密UTF-8编码后台的密文
     */  
	public static String encryptMd5(String inputStr) throws UnsupportedEncodingException{
		return DigestUtils.md5Hex(inputStr.getBytes("utf-8"));
    }
	
}
